﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RecruitmentProcessSystem
{
    public partial class frmMain : Form
    {
        String name;
        String role;
        String user;
        public frmMain(String name,String user,String role)
        {
            InitializeComponent();
            this.name = name;
            this.user = user;
            this.role = role;
            if (role.Equals("admin"))
            {
                HRTool.Enabled = true;
                inteTool.Enabled = false;
            }
            else {
                    HRTool.Enabled = false;
                    inteTool.Enabled = true;
            }
        }

        private void createToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmVacancyManager Form = new frmVacancyManager();
            Form.ShowDialog();
        }

        private void createToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmApplicantManager Form = new frmApplicantManager();
            Form.ShowDialog();
        }

        private void createInterviewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmInterviewManager Form = new frmInterviewManager();
            Form.ShowDialog();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {

        }

        private void serachToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
    }
}
